package com.huike.web.controller.report;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.huike.clues.domain.TbClue;
import com.huike.common.core.domain.AjaxResult;
import com.huike.report.domain.dto.reportDto;
import com.huike.report.domain.vo.ActivityStatisticsVo;
import com.huike.report.domain.vo.VulnerabilityVo;
import com.huike.report.service.impl.ReportServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huike.common.core.controller.BaseController;

import java.util.Date;

@Slf4j
@RestController
@RequestMapping("/report")
public class ReportController extends BaseController {
@Autowired
private ReportServiceImpl reportService;


    @GetMapping("/getVulnerabilityMap/{beginCreateTime}/{endCreateTime}")
    public AjaxResult getVulnerabilityMap(@PathVariable String beginCreateTime, @PathVariable String endCreateTime) {
     log.info("进入到接口{},{}",beginCreateTime,endCreateTime);
        VulnerabilityVo vulnerabilityVo = reportService.getVulnerabilityMap(beginCreateTime, endCreateTime);


//     reportService.
        return  AjaxResult.success(vulnerabilityVo);
    }




}